package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    public void add(User user, Integer[] roleIds)throws Exception;

    public PageResult findPage(QueryPageBean queryPageBean);

    public List<User> findAll();

    public User findById(Integer roleId);

    List<Integer> findRoleIdsByUserId(Integer roleId);

    void edit(User user, Integer[] perssionIds);

    void delete(Integer id);

    boolean findByUsernameAndTel(String username, String telephone);

    void editPassword(String username, String password);
}
